#ifndef GLWINDOW_H
#define GLWINDOW_H

#include <QtOpenGL/QtOpenGL>
#include <QtGui>



class GLWindow :public QGLWidget
{
    Q_OBJECT
public:
    GLWindow(QWidget *parent=0, char *name=0);
    virtual ~GLWindow();

protected:
    virtual void initializeGL()=0;
    virtual void paintGL()=0;

    void resizeGL( int width, int height );
    virtual void keyPressEvent( QKeyEvent *){}
    virtual void mouseMoveEvent(QMouseEvent *){}
    virtual void mousePressEvent(QMouseEvent*){}
private:

};


#endif // GLWINDOW_H
